package com.hospital.common.core.result;

import com.hospital.common.core.exception.ExceptionHelpEnum;

public class ErrorTip extends Tip {

    public ErrorTip(int code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    public ErrorTip(ExceptionHelpEnum exceptionHelpEnum) {
        super();
        super.code = exceptionHelpEnum.getCode();
        super.data = exceptionHelpEnum.getMessage();
        super.message = exceptionHelpEnum.getMessage();
    }

    public ErrorTip(String code, String message, Object obj) {
        super();
        super.code = Integer.parseInt(code);
        super.data = obj;
        super.message = message;
    }

    public ErrorTip(String code, String message) {
        super();
        super.code = Integer.parseInt(code);
        super.message = message;
    }
}
